package com.tsd.base.dao;

import com.tsd.base.entity.BasePrintDesign;
import com.tsd.base.entity.BasePrintDesignExt;
import com.tsd.common.vo.BatchDeleteLogicVo;
import com.tsd.core.vo.PageBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 描述：BasePrintDesignMapper
 *
 * @author Hillpool
 * @date 2022/10/13 10:54:41
 */
public interface BasePrintDesignMapper {

    BasePrintDesign selectByPrimaryKey(Long id);

    BasePrintDesignExt selectBySid(String sid);

    int deleteByPrimaryKey(Long id);

    int insert(BasePrintDesign record);

    int insertSelective(BasePrintDesign record);

    int updateByPrimaryKey(BasePrintDesign record);

    int updateByPrimaryKeySelective(BasePrintDesign record);

    int insertList(@Param("list") List<BasePrintDesignExt> list);

    int updateList(@Param("list") List<BasePrintDesignExt> list);

    List<BasePrintDesignExt> selectByEntity(BasePrintDesignExt record);

    List<BasePrintDesignExt> selectByPage(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    List<BasePrintDesignExt> selectCount1Page(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    List<BasePrintDesignExt> selectByParams(@Param("params") Map<String, Object> params);

    int deleteLogicBySidList(BatchDeleteLogicVo logicVo);

    Integer checkDuplicatedObj(BasePrintDesignExt record);

    int selectMaxSn(BasePrintDesignExt record);
}